function verify(val) {
    return typeof val === 'string' && val.endsWith('Ref')
}

function result(selectedText) {
    const text = selectedText.replace('Ref', '')
    return `<${text} ref="${text}Ref"></${text}>\nconst ${text}Ref = ref(null)`
}

module.exports = {
    verify,
    result
}